package com.controller.cook;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class TestController {
	
	/**
	 * 相当于共享变量,list的大小可以动态变化
	 */
	public List list = new ArrayList();
	
	@RequestMapping(value="test")
	public String checkList(){
		
		int code = list.hashCode();
		int size = list.size();
		System.out.println("这个列表的大小和code为："+code+"大小"+size);
		return "dd";
	}
}
